package com.gusto.test.neighborhood.mock;

import com.gusto.engine.colfil.Prediction;
import com.gusto.engine.colfil.Rating;
import com.gusto.engine.colfil.neighborhood.ColEventListener;

public class CollaborativeEventListenerMockImpl implements ColEventListener {
	
	private String operation;
	
	public String getOperation() {
		return operation;
	}
	
	public void predictionInserted(long userId, long itemId, Prediction prediction) throws Throwable {
		operation = "predictionInserted " + userId + " " + itemId + " " + prediction.getValue();
	}
	
	public void ratingInserted(long userId, long itemId, Rating rating, boolean checkExistence) throws Throwable {
		operation = "ratingInserted " + userId + " " + itemId + " " + rating.getValue();
	}

}
